home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gDebug, gSection, gDemoName, gcountMax, gCountLoops
- set gDebug to 0
- set gSection to "START"
- set gDemoName to "Excel"
- set the keyDownScript to "whichKey"
- set gcountMax to 150
- set gCountLoops to 1
- end
-
- on whichKey
- global gVersion, gSection
- cursor(200)
- if the key = "1" then
- set gSection to "ViewAll"
- go("*ViewAll Transition")
- end if
- if the key = "2" then
- set gSection to "EASY"
- go("*EASY Transition")
- end if
- if the key = "3" then
- set gSection to "EFFECTIVE"
- go("*EFFECTIVE transition")
- end if
- if the key = "4" then
- set gSection to "GREAT PART"
- go("*Great Part Transition")
- end if
- if the key = "S" then
- if gSection = "MENU" then
- go("*start transition")
- end if
- go("*start")
- end if
- if the key = "s" then
- if gSection = "MENU" then
- go("*start transition")
- end if
- go("*start")
- end if
- if the key = numToChar(32) then
- pause()
- end if
- if the key = "P" then
- pause()
- end if
- if the key = "p" then
- pause()
- end if
- if the key = numToChar(27) then
- if gVersion = "Reseller" then
- if gSection = "QUIT SEQUENCE" then
- GoToOffice()
- end if
- end if
- if gSection = "QUIT SEQUENCE" then
- quit()
- end if
- if gSection = "GREAT PART" then
- go("*Menu")
- end if
- if gSection = "START" then
- go("*Menu")
- end if
- if gSection = "EASY" then
- go("*Menu")
- end if
- if gSection = "VIEWALL" then
- go("*Menu")
- end if
- if gSection = "EFFECTIVE" then
- go("*Menu")
- end if
- if gSection = "MENU" then
- go("*Quit Sequence")
- end if
- end if
- if the key = RETURN then
- if the pauseState = 1 then
- continue()
- end if
- end if
- if the key = "M" then
- go("*Menu")
- end if
- if the key = "m" then
- go("*Menu")
- end if
- if the key = TAB then
- if the shiftDown then
- if marker(0) < label("*Start Again") then
- beep()
- go("*start")
- else
- go(marker(-1))
- end if
- end if
- if the shiftDown = 0 then
- go(marker(1))
- end if
- end if
- end
-
- on MainMenuTimeout
- global gCountLoops, gVersion, gSection
- set gCountLoops to 1
- if gVersion = "Reseller" then
- GoToOffice()
- end if
- if gVersion <> "Reseller" then
- set gSection to "ViewAll"
- go("*ViewAll Transition")
- end if
- end
-
- on GoToOffice
- go("*menu", "MS Mac Office Demo")
- end
-